package com.huitone.smspfm.socket;

import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.List;

import org.apache.commons.lang.ArrayUtils;

import com.bin.common.utils.DateTimeUtils;
import com.bin.common.utils.StringUtils;
import com.huitone.smspfm.socket.protocol.sgip.constant.CommandID;
import com.huitone.smspfm.socket.protocol.sgip.conversion.TransferConverter;
import com.huitone.smspfm.socket.protocol.sgip.message.Message;
import com.huitone.smspfm.socket.protocol.sgip.message.msgbody.Bind;
import com.huitone.smspfm.socket.protocol.sgip.message.msgbody.Submit;
import com.huitone.smspfm.socket.protocol.sgip.message.msghead.Head;

/**   
* @Title: SocketTest.java 
* @Package com.huitone.smspfm.socket 
* @Description: TODO(用一句话描述该文件做什么) 
* @author ybliang   
* @date 2017年3月19日 下午10:08:50 
* @version V1.0   
*/
public class SocketTest2 {
	
	public static void main(String[] args) throws IOException, InterruptedException {
		
		Socket socket = new Socket("127.0.0.1", 8901);
		//socket.setKeepAlive(true);
		//socket.setSoTimeout(15*1000);
		
		OutputStream outputStream = null;
		
		int count  = 0;
		
		long start = System.currentTimeMillis();
		
		
		long end = System.currentTimeMillis();
		
		System.out.println(end - start);
		
		outputStream.close();
		
		socket.close();
	}
}
